#ifndef PROFILEINFOWIDGET_H
#define PROFILEINFOWIDGET_H

#include <QPointer>
#include <QFrame>

#include <messaginglayer/contactinfo.h>

class QPaintEvent;

class CProfile;

class ProfileInfoWidget : public QFrame
{
    Q_OBJECT
public:
    explicit ProfileInfoWidget(QWidget *parent = 0);
    QSize sizeHint() const;

    void setProfile(CProfile * profile);

private slots:
    void profileInfoChanged();

protected:
    void paintEvent(QPaintEvent *e);

private:
    ContactInfo m_profileInfo;
    QPointer<CProfile> m_profilePointer;
};

#endif // PROFILEINFOWIDGET_H
